package com.mxl.dao.cashorder.impl;

import org.hibernate.criterion.Restrictions;

import com.mxl.dao.cashorder.model.CardRule;
import com.mxl.datebase.orm.hibernate.BaseDaoSupport;

public class CardRuleDaoImpl extends BaseDaoSupport<CardRule, Long> {

	public CardRule getBosstype(int cardNoLen, int cardPwdLen) {
		return this.findUnique(Restrictions.eq("cardNoLen", cardNoLen),
				Restrictions.eq("cardPwdLen", cardPwdLen),Restrictions.eq("status", 0));
	}
}
